<template>
  <view class="">
    <listCard>
      <view class="container">
        <navigator class="addStock" url="/pages/stock/addStock/addStock">添加持仓</navigator>
        <view class="changeStock" @click="toChangeStock">
          一键换仓
        </view>
      </view>
    </listCard>
  </view>
</template>

<script>
  import listCard from '@/components/list-card/list-card.vue'
  
  export default {
    components: {
      listCard
    },
    methods: {
      toChangeStock () {
        uni.navigateTo({
          url: '/pages/stock/changeStock/index'
        })
      }
    }
  }
</script>

<style lang="scss" scoped>
  .container {
    display: flex;
    justify-content: space-around;
    overflow: hidden;
    text-align: center;
    color: blue;
    .addStock {
      width: 315rpx;
    }
    .changeStock {
      width: 315rpx; 
    }
  }
  
</style>
